package com.yzmoney.wechat.model.token;

import org.springframework.stereotype.Component;

@Component
public class JsTokenJson {



	private String errcode;

	private String errmsg;

	private String expires_in;

	private String ticket;

	public JsTokenJson() {
		super();
	}


	@Override
	public String toString() {
		return "AccessToken [token=" + ticket + ", expires_in="
				+ expires_in + " ,errcode=" + errcode + " ,errmsg:" + errmsg + "]";
	}

	public String getTicket() {
		return ticket;
	}

	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	public String getErrcode() {
		return errcode;
	}

	public void setErrcode(String errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public String getExpires_in() {
		return expires_in;
	}

	public void setExpires_in(String expires_in) {
		this.expires_in = expires_in;
	}

	public JsTokenJson(String errcode, String errmsg, String expires_in, String ticket) {
		this.errcode = errcode;
		this.errmsg = errmsg;
		this.expires_in = expires_in;
		this.ticket = ticket;
	}
}
